package com.example.parking.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("car_info")
public class CarInfo {
    @TableId(value = "car_id", type = IdType.AUTO)
    private Integer carId;

    private Integer userId;

    private String phone;

    private String CarNum;

    private String CarType;

    private String address;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;
}
